package router

import (
	"api-getaway/handler/api"
	"github.com/gin-gonic/gin"
)

func Router(r *gin.Engine) {
	r.POST("sendSms", api.SendSms)                 //短信发送
	r.POST("register", api.Register)               //注册
	r.POST("login", api.Login)                     //登录
	r.POST("upload", api.Upload)                   //图片上传
	r.POST("video/add", api.VideoAdd)              //视频添加
	r.POST("video/review/add", api.VideoReviewAdd) //视频审核
	r.GET("video/list", api.VideoList)             //视频列表+分页
	r.GET("video/filter", api.VideoFilter)         //视频筛选
	r.GET("video/show", api.VideoShow)             //视频详情
	r.GET("episode/list", api.EpisodeList)         //剧集列表
	r.POST("history/storage", api.HistoryStorage)  //历史记录存储
	r.GET("history/list", api.HistoryList)         //历史记录查询
	r.GET("ranking/list", api.RankingList)         //排行榜查询
}
